package main

import (
	"fmt"
	"io/fs"
	"os"
	"path/filepath"
	"strings"
)

func main() {
	root := "/home/debi/IdeaProjects/LearnGo/basic/std"
	okk := "/usr/local/Evn/Compiler/Golang/go/src/"
	filepath.WalkDir(okk, func(path string, d fs.DirEntry, err error) error {
		if d.IsDir() && !strings.Contains(path, "cmd") && !strings.Contains(path, "src/go") && !strings.Contains(path, "vendor") && !strings.Contains(path, "internal") && !strings.Contains(path, "testdata") && !strings.Contains(path, "runtime") {
			prefix := strings.TrimPrefix(path, okk)
			split := strings.Split(prefix, "/")
			join := strings.Join(split, "x/")
			s := filepath.Join(root, join+"x")
			fmt.Println(s)
			os.MkdirAll(s, 0755)
		}
		return nil
	})

}
